package com.bestcem.xm.award.dao.mapper;

import com.bestcem.xm.award.entity.mysql.AwardBandPointEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 积分奖励数据mapper
 *
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/14 15:29
 */
@Mapper
public interface AwardBandPointEntityMapper {
    /**
     *
     * @date 2021-09-23
     */
    int deleteByPrimaryKey(String awardId);

    /**
     *
     * @date 2021-09-23
     */
    int insert(AwardBandPointEntity record);

    /**
     *
     * @date 2021-09-23
     */
    int insertSelective(AwardBandPointEntity record);

    /**
     *
     * @date 2021-09-23
     */
    AwardBandPointEntity selectByPrimaryKey(String awardId);

    /**
     *
     * @date 2021-09-23
     */
    int updateByPrimaryKeySelective(AwardBandPointEntity record);

    /**
     *
     * @date 2021-09-23
     */
    int updateByPrimaryKey(AwardBandPointEntity record);

    /**
     * 查询积分是否被使用中
     * @param pointId
     * @return
     */
    int existsNotDeleteAwardByPointId(String pointId);
}